import observe from './observe'
import Watcher from './Watcher'

var obj = {
  a: {
    m: {
      n: 5,
    },
  },
  b: 10,
  g:[22,23,24]
}

observe(obj)
new Watcher(obj,'a.m.n',(val)=>{
  console.log('Watcher监听到了新变化：',val)
})
obj.a.m.n = 111
console.log(obj)